package com.dhcc.DRGsHosp.core.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.openkoala.koala.commons.domain.KoalaLegacyEntity;

/**
 * 
 * @ClassName: MrqDictDetail  
 * @Description ：    得分项目的字典表
 * @Date: 2018年7月26日 下午3:28:23  
 * @Author QiaoYiLong 
 * @Version 3.1.1 DHC-DRG
 */
@Entity
@Table(name="MRQ_DICT_DETAIL", schema = "DRGs")
public class MrqDictDetail extends KoalaLegacyEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4785054972521015123L;

	public MrqDictDetail(){
		super();
	}
	
	/**
	 * 构造函数
	 * @param detailCode  得分项目编码	
	 * @param weightCode  得分项目对应的权重编码
	 * @param scoreCode   四大类检查项目编码
	 * @param detailName  得分项目名称
	 * @param detailScore 得分项目分数
	 * @param validFlag   有效标志
	 * @param medicalRecordField 首页字段名
	 */
	public MrqDictDetail(String detailCode,String weightCode,String scoreCode,String detailName,Double detailScore,String validFlag,String medicalRecordField){
		this.detailCode = detailCode ;
		this.weightCode = weightCode ;
		this.scoreCode = scoreCode ;
		this.detailName = detailName;
		this.detailScore = detailScore;
		this.validFlag = validFlag ;
		this.medicalRecordField = medicalRecordField;
	}
	
	//得分项目编码	
	@Id
	@Column(name = "DETAIL_CODE",nullable=false)
	private String detailCode;
	
	//得分项目对应的权重编码	
	@Column(name = "WEIGHT_CODE",nullable=false)
	private String weightCode;
	
	//四大类检查项目编码
	@Column(name = "SCORE_CODE",nullable=false)
	private String scoreCode;
	
	//得分项目名称	
	@Column(name = "DETAIL_NAME",nullable=false)
	private String detailName;
	
	//得分项目分数	
	@Column(name = "DETAIL_SCORE")
	private Double detailScore;
	
	//有效标志	
	@Column(name = "VALID_FLAG")
	private String validFlag;
	
	//首页字段名	
	@Column(name = "MEDICALRECORD_FIELD")
	private String medicalRecordField;
	
	public String getDetailCode() {
		return detailCode;
	}

	public void setDetailCode(String detailCode) {
		this.detailCode = detailCode;
	}

	public String getWeightCode() {
		return weightCode;
	}

	public void setWeightCode(String weightCode) {
		this.weightCode = weightCode;
	}

	public String getScoreCode() {
		return scoreCode;
	}

	public void setScoreCode(String scoreCode) {
		this.scoreCode = scoreCode;
	}

	public String getDetailName() {
		return detailName;
	}

	public void setDetailName(String detailName) {
		this.detailName = detailName;
	}

	public Double getDetailScore() {
		return detailScore;
	}

	public void setDetailScore(Double detailScore) {
		this.detailScore = detailScore;
	}

	public String getValidFlag() {
		return validFlag;
	}

	public void setValidFlag(String validFlag) {
		this.validFlag = validFlag;
	}

	public String getMedicalRecordField() {
		return medicalRecordField;
	}

	public void setMedicalRecordField(String medicalRecordField) {
		this.medicalRecordField = medicalRecordField;
	}

	@Override
	public Serializable getId() {
		return detailCode;
	}

	@Override
	public String[] businessKeys() {
		// TODO Auto-generated method stub
		return null;
	}

}
